package com.cuit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cuit.params.UserOption;
import com.cuit.params.UserParams;
import com.cuit.params.UserShowParams;
import com.cuit.pojo.Users;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UsersMapper  extends BaseMapper<Users> {
    //根据条件查询用户
    List<UserParams> queryByOption(Map<String,Object> params);
    //获得查询到的用户总数量
    Long queryOptionCount(UserOption userOption);
    //获得全部用户数据
    List<UserShowParams> getAllUser(Map<String,Object> params);
    //获得全部用户数量
    Long getAllUserCount();
}
